package com.hqyj.springboot.test;

public class Demo2 {

    public static void change(String str1, StringBuilder str2) {
        System.out.println("str1 = " + str1);
        System.out.println("str2 = " + str2);
        str1 = "小张";
        str2.append(",我们去钓鱼");
        System.out.println("after change....");
        System.out.println("str1 = " + str1);
        System.out.println("str2 = " + str2);
    }


    public static void main(String[] args) {
        String str = "小明";
        StringBuilder str2 = new StringBuilder("今天天气好");
        change(str, str2);
        System.out.println("======in main()========");
        System.out.println("str = " + str);
        System.out.println("str2 = " + str2);
    }
}
